package com.edu.bean;

import java.util.List;

/**
 * @Author:zyn
 * @Date:2025/10/17--11:37:01
 */
public class Department {
    private Integer departId;
    private String deptName;
    private Integer parentId;
    private Integer empNum;
    private Double avgSalary;
    private List<Employee> employeeList;

    public List<Employee> getEmployeeList() {
        return employeeList;
    }

    public void setEmployeeList(List<Employee> employeeList) {
        this.employeeList = employeeList;
    }

    public Integer getDepartId() {
        return departId;
    }

    public void setDepartId(Integer departId) {
        this.departId = departId;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getEmpNum() {
        return empNum;
    }

    public void setEmpNum(Integer empNum) {
        this.empNum = empNum;
    }


    public Double getAvgSalary() {
        return avgSalary;
    }

    public void setAvgSalary(Double avgSalary) {
        this.avgSalary = avgSalary;
    }

    public Department() {
    }

    @Override
    public String toString() {
        return "department{" +
                "id=" + departId +
                ", deptName='" + deptName + '\'' +
                ", departId=" + parentId +
                '}';
    }
}
